function injectScript(url, cb) {
    if (chrome && chrome.extension && chrome.extension.getURL) {
        let content = chrome.extension.getURL(url)
        let script = document.createElement('script')
        script.setAttribute('type', 'text/javascript')
        script.setAttribute('src', content)
        script.onload = function () {
            document.body.removeChild(script);
            cb && cb();
        }
        document.body.appendChild(script)
    }
}

injectScript('js/vue.js', () => {
    injectScript('js/inject.js')
})

